package com.ibangnuo.manage.dao.channel;

import com.ibangnuo.framework.domain.AdminEntity;
import com.ibangnuo.framework.domain.Channel;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @Author: wwy
 * @Date: 2019-12-18 17:22
 */
public interface ChannelRepository extends JpaRepository<Channel,String> {
    List<Channel> findByCommercialId(String tenantId);

    Channel findByType(int type);

    Channel findByTypeAndCommercialId(int type ,String commercial);

}
